<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="verify-v1" content="+MgqBBkIKuPFb8Nra7FeAmHoMeMnY0V2PuQkXlhCxoE=" />
<style type="text/css" >@import url('/css/style.css');</style>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load("jquery", "1.2.6"); 
	google.setOnLoadCallback(init);
  
  /***************
   * Initialisation
   */
  function init() {
  	//Add click handler to all links with classname "link-sample"
	$('.link-sample').each(function(){
		$(this).click(function(){
			$('#gifuri').val($(this).attr('href'));
			return false;
		});
	});
	
	$("#button-submit").click(trackButtonClick);
	
	$(".evtlink").each(function(){
		$(this).click(function(){
			if (linkTracker) {
				linkid = $(this).attr('id');
				linkTracker._trackEvent('click', linkid, 1);
			}
		});
	});
	
	$('#gifuri').click(function(){
		$(this).val('');
	});
  }
  
  /*********
   * Track form submit button click in Google Analytics using both "virtual URL" and event tracking methods
   * Use the "virtual URL" method so that we can track the button click as a Goal
   */
  function trackButtonClick() {
  	if (pageTracker) {
		pageTracker._trackPageview('/utmgifparser/action/button/submit/click');
	}
	
	if (eventTracker) {
		eventTracker._trackEvent('submit', '', 1);
	}
  }
</script>
<title>__utm.gif Parser</title>
</head>

<body>
<div id="content">
<div id="login">
{{ nick }} | {{ loglink }}
</div>
<h1><a href="http://www.google.com/analytics" target="_blank"><img src="images/logo_ga.gif" alt="Google Analytics"/></a>&nbsp;Google Analytics __utm.gif Parser</h1>
The Google Analytics tracking code (GATC) makes a request for http://www.google-analytics.com/__utm.gif - along with that request it sends multiple parameters representing the information it has collected about the current visitor.  <strong>This tool allows you to decrypt that request and understand what it means.</strong>
<div id="form-div">
<!-- <h3>Paste your __utm.gif request here</h3> -->
<form id="form" method="post" action="/">
  <input name="gifuri" id="gifuri" type="text" size="70" value="{% if gifuri %}{{ gifuri }}{% else %}Paste your __utm.gif request here{% endif %}" /><br/>
  <br/>
  <input type="submit" id="button-submit" value="Decrypt __utm.gif hit &gt;&gt;" />
</form>
</div>
<div id="examples">
Try these example __utm.gif hits (click on link to load it into the input box):<br/>
<ul id="example-uris">
  <li><a href="http://www.google-analytics.com/__utm.gif?utmwv=4.2&utmn=422465071&utmhn=vinoaj.com&utmcs=UTF-8&utmsr=1400x1050&utmsc=16-bit&utmul=en-gb&utmje=1&utmfl=9.0%20%20r124&utmdt=vinoaj.com&utmhid=569350140&utmr=-&utmp=/&utmac=UA-1857529-1&utmcc=__utma%3D187658927.2019241260.1204447772.1213828747.1213870612.37%3B%2B__utmz%3D187658927.1212993993.31.4.utmgclid%3Dtest%7Cutmccn%3D(not%2Bset)%7Cutmcmd%3D(not%2Bset)%3B" class="link-sample">http://www.google-analytics.com/__utm.gif?utmwv=4.2&amp;utmn=422465071&amp;utmhn=vinoaj.com&amp;utmcs=UTF-8&amp;utmsr=1400x1050&amp;utmsc=16-bit&amp;utmul=en-gb&amp;utmje=1&amp;utmfl=9.0%20%20r124&amp;utmdt=vinoaj.com&amp;utmhid=5693....</a></li>
  <li><a href="http://www.google-analytics.com/__utm.gif?utmwv=4.2&utmn=1297170432&utmhn=utmgifparser.appspot.com&utmt=event&utme=5(links*click*link-appengine)(1)&utmcs=ISO-8859-1&utmsr=1400x1050&utmsc=16-bit&utmul=en-gb&utmje=1&utmfl=9.0%20%20r124&utmdt=__utm.gif%20Parser&utmhid=1282989282&utmr=0&utmp=/&utmac=UA-1857529-1&utmcc=__utma%3D127935816.1051951556041994100.1213927721.1213927721.1213940876.2%3B%2B__utmz%3D127935816.1213927721.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B" class="link-sample">http://www.google-analytics.com/__utm.gif?utmwv=4.2&amp;utmn=1297170432&amp;utmhn=utmgifparser.appspot.com&amp;utmt=event&amp;utme=5(links*click*link-appengine)(1)&amp;utmcs=ISO-8859-1&amp;...</a></li>
</ul>
</div>


<div id="output">
{% if output %}
    <table cellspacing="1" cellpadding="2">
    <tr>
      <th>Variable</th>
      <th>Description</th>
      <th>Value</th>
      </tr>
    <tr>
      <td><strong>utmac</strong></td>
      <td>Account String. Appears on all requests.</td>
      <td>{{ output.utmac|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmcc<br />      
      </strong></td>
      <td>Cookie values. This request parameter sends all the cookies requested from the page.<br />
      </td>
      <td>{{ output.utmcc }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmcn</strong></td>
      <td>Starts a new campaign session.  Either utmcn or utmcr is present on any given request. Changes the campaign tracking data; but does not start a new session<br />
      </td>
      <td>{{ output.utmcn|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmcr<br />      
      </strong></td>
      <td>Indicates a repeat campaign visit.  This is set when any subsequent clicks occur on the same link. Either utmcn or utmcr is present on any given request.<br />
      </td>
      <td>{{ output.utmcr|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmcs<br />      
      </strong></td>
      <td>Language encoding for the browser.  Some browsers don't set this, in which case it is set to &quot;-&quot;<br />
      </td>
      <td>{{ output.utmcs|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmdt<br />      
      </strong></td>
      <td>Page title, which is a URL-encoded string.</td>
      <td>{{ output.utmdt|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utme</strong></td>
      <td>X10 Data Parameter</td>
      <td>{{ output.utme|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmfl<br />      
      </strong></td>
      <td>Flash Version</td>
      <td>{{ output.utmfl|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmhn<br />
        <br />      
        </strong></td>
      <td>Host Name, which is a URL-encoded string.</td>
      <td>{{ output.utmhn|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmipc<br />      
      </strong></td>
      <td>Product Code. This is the sku code for a given product.<br />
          <br />
      </td>
      <td>{{ output.utmipc|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmipn<br />      
      </strong></td>
      <td>Product Name, which is a URL-encoded string.</td>
      <td>{{ output.utmipn|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmipr<br />      
      </strong></td>
      <td>Unit Price. Set at the item level. Value is set to numbers only in U.S. currency format.<br />
      </td>
      <td>{{ output.utmipr|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmiqt<br />      
      </strong></td>
      <td>Quantity.</td>
      <td>{{ output.utmiqt|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmiva<br />      
      </strong></td>
      <td>Variations on an item. For example: large, medium, small, pink, white, black, green. String is URL-encoded.<br />
      </td>
      <td>{{ output.utmiva|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmje<br />      
      </strong></td>
      <td>Indicates if browser is Java-enabled. 1 is true.</td>
      <td>{{ output.utmje|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmn<br />      
      </strong></td>
      <td>Unique ID generated for each GIF request to prevent caching of the GIF image. </td>
      <td>{{ output.utmn|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmp<br />      
      </strong></td>
      <td>Page request of the current page. </td>
      <td>{{ output.utmp|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmr<br />      
      </strong></td>
      <td>Referral, complete URL.</td>
      <td>{{ output.utmr|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmsc<br />      
      </strong></td>
      <td>Screen color depth</td>
      <td>{{ output.utmsc|escape }}<br />      </td>
      </tr>
    <tr class="alt">
      <td><strong>utmsr<br />      
      </strong></td>
      <td>Screen resolution</td>
      <td>{{ output.utmsr|escape }}<br />      </td>
      </tr>
    <tr>
      <td><strong>utmt<br />      
      </strong></td>
      <td>A special type variable applied to events, transactions, items and user-defined variables.</td>
      <td>{{ output.utmt|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmtci<br />      
      </strong></td>
      <td>Billing City</td>
      <td>{{ output.utmtci|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmtco<br />      
      </strong></td>
      <td>Billing Country</td>
      <td>{{ output.utmtco|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmtid<br />      
      </strong></td>
      <td>Order ID, URL-encoded string.</td>
      <td>{{ output.utmtid|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmtrg<br />      
      </strong></td>
      <td>Billing region, URL-encoded string.</td>
      <td>{{ output.utmtrg|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmtsp<br />      
      </strong></td>
      <td>Shipping cost. Values as for unit and price.</td>
      <td>{{ output.utmtsp|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmtst<br />      
      </strong></td>
      <td>Affiliation. Typically used for brick and mortar applications in ecommerce. </td>
      <td>{{ output.utmtst|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmtto<br />      
      </strong></td>
      <td>Total. Values as for unit and price.</td>
      <td>{{ output.utmtto|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmttx<br />      
      </strong></td>
      <td>Tax. Values as for unit and price.</td>
      <td>{{ output.utmttx|escape }}</td>
      </tr>
    <tr class="alt">
      <td><strong>utmul<br />      
      </strong></td>
      <td>Browser language.</td>
      <td>{{ output.utmul|escape }}</td>
      </tr>
    <tr>
      <td><strong>utmwv<br />      
      </strong></td>
      <td>Tracking code version</td>
      <td>{{ output.utmwv|escape }}</td>
      </tr>
  </table>
  
{% endif %}
</div>

<div id="faqs">
<h2>FAQs</h2>
<h3>What is __utm.gif</h3>
From the <a href="http://code.google.com/apis/analytics/docs/gaTrackingTroubleshooting.html" target="_blank" class="evtlink" id="link-troubleshooting">troubleshooting guide</a>:<br/> 
<quote>Each time the Google Analytics Tracking Code executes, it requests a single-pixel GIF image from the Google Analytics collection servers called __utm.gif.  Appended to the URI request string for the image are all the parameters Google captures about a particular page request ... The data contained in the GIF request corresponds exactly to the data sent to the Google Analytics servers, which then gets processed and ends up in your reports. So by viewing the data sent in the __utm.gif request, you can determine if the GATC is working and, more importantly, where it's sending incorrect data to your reports.</quote>

<h3>How do I find the __utm.gif request?</h3>
The <a href="">Google Analytics troubleshooting guide</a> provides instructions on tracking the __utm.gif request over a number of platforms, browsers and tools.  Personally, I prefer the Firefox + <a href="http://getfirebug.com/" target="_blank" id="link-firebug" class="evtlink">Firebug</a> methodology.
</div>

<div id="end">
  <a href="http://code.google.com/appengine/" target="_blank" id="link-appengine" class="evtlink"><img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" alt="The utmGifParser is powered by Google App Engine" /></a>&nbsp;&nbsp;
  <a href="http://code.google.com/p/vinnysappengine/source/browse/trunk/utmgifparser/" target="_blank" id="link-source" class="evtlink nodecoration">Click here to view and <code>svn co</code> the source code here</a>
</div>
<script type="text/javascript" src="http://www.google-analytics.com/ga.js">
<script type="text/javascript">
	var pageTracker = _gat._getTracker("UA-1857529-1");
	pageTracker._initData();
	pageTracker._trackPageview();
	
	eventTracker = pageTracker._createEventTracker('utmGifParserForm');
	linkTracker  = pageTracker._createEventTracker('links');
</script>
</body>
</html>